<?php
namespace IKPHP\Apps\Home;
class Module 
{
        public function registerAutoloaders(){}
        public function registerServices($di)
        {
                $config = include ROOT_PATH . "/config/config.php";
                //定义模板文件位置目录
                $di->set('view', function() {
                	
                        $view = new \Phalcon\Mvc\View();
                        $view->setViewsDir(__DIR__ . '/views/');
                        $view->setTemplateAfter('main');
                        $view->registerEngines(array(
							".html" => 'volt'
						));
                        return $view;
                });
        }
        
}